/**
 * (C) 2007 - 2009 Parleys.com NV.
 */
package com.parleys.core.domain;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author stephanjanssen
 */

@XmlRootElement
@SuppressWarnings("serial")
public class Space extends BaseObject {

    private String name;

    private String description;

    private boolean isPublic;

    private List<Channel> channels = new ArrayList<Channel>();
    
    protected Space(){
      
    }

    public Space(Long id, String name, String description, boolean isPublic) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.isPublic = isPublic;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isPublic() {
        return isPublic;
    }

    public void setPublic(boolean aPublic) {
        isPublic = aPublic;
    }

    public void addChannel(Channel channel) {
        channels.add(channel);
    }

    public List<Channel> getChannels() {
        return channels;
    }

    public void setChannels(List<Channel> channels) {
        this.channels = channels;
    }
}
